package cn.ymz.model;

public class Urls {
    private final static Urls INSTANCE = new Urls();

    private final String PRE = "http://";

    private Urls() {
    }

    public static Urls getInstance() {
        return INSTANCE;
    }

    private String baseUrl = "newcrm.xsl666.cn";

    private String loginUrl = "/api/user/login";

    private String callTypeUrl = "/api/get/callType";

    private String callUrl = "/api/call/mobile";

    public String getBaseUrl() {
        return PRE + baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }

    public String getLoginUrl() {
        return getBaseUrl() + loginUrl;
    }

    public String getCallUrl() {
        return getBaseUrl() + callUrl;
    }

    public String getCallTypeUrl() {
        return getBaseUrl() + callTypeUrl;
    }

    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }

    public void setCallTypeUrl(String callTypeUrl) {
        this.callTypeUrl = callTypeUrl;
    }

    public void setCallUrl(String callUrl) {
        this.callUrl = callUrl;
    }
}
